<?php
	$contactError = false;
	$contactSend = false;
	$applicationError = false;
	$applicationSend = false;
	
	function getLanguage()
	{
		return substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);	
	}
	
	function getHeader($pageTitle)
	{
		echo'
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml" lang="nl">
		    <head>
		        <meta charset="utf-8" />
		        
                        <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
		        Remove this if you use the .htaccess -->
		        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>     
		        <meta name="description" content="BroCo Website" />
		        <meta name="author" content="BroCo Development" />		        
		        <meta name="viewport" content="width=device-width; initial-scale=1.0" />
		        
		        <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
		        <link rel="shortcut icon" href="/favicon.ico" />
		        <link rel="apple-touch-icon" href="/apple-touch-icon.png" />      
		      
		        <link href="http://fonts.googleapis.com/css?family=Oxygen" rel="stylesheet" type="text/css">    		
		     
                        <link rel="stylesheet" type="text/css" href="css/stylesheet.css" />
                        <link rel="stylesheet" href="css/superfish.css" media="screen">
                        <script src="js/jquery-1.9.0.min.js"></script>
                        <script src="js/hoverIntent.js"></script>
                        <script src="js/superfish.js"></script>

                        <script>		
                        // initialise plugins
                        jQuery(function(){
                                jQuery("ul.sf-menu").superfish({
                                        useClick: true
                                });
                        });
                        </script>	

                        <script type="text/javascript">                                                               
                        var domainroot="timcocu.nl"

                        function Gsitesearch(curobj)
                        {
                            curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
                        }
                        </script>

                        <title>BroCo Development - '.$pageTitle.'</title>
		    </head>
		
		    <body class="index">
		        <div id="wrapper">
		            <div id="container">
		                <div class="header">
		                    <div class="banner" align="center">                        
		                        <img src="images/broco_banner.png">
		                    </div>            
		                    <div class="search">
                                        <form action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
                                                <input name="q" type="hidden" />
            		                        <input id="searchButton" type="submit" value="Search">
                	                        <input id="searchBox" type="text" name="qfront">     
                                        </form>
		                    </div>    
		                </div>	
		';	
	}
	
	function getMenu()
	{
		switch(getLanguage())
		{
			case "nl":						
				echo'	
					<div class="menubar">
				        <ul class="sf-menu">
				            <li class="current"><a href="index.php">Home</a></li>                          
				            <li>
				                <a href="#">Over</a>
				                <ul class="active">
				                    <li><a href="">Geschiedenis</a></li>
				                    <li><a href="">Visie</a></li>
				                    <li><a href="solliciteren.php">Werken bij BroCo</a></li>
				                    <li><a href="">Wie zijn wij...</a></li>                                 
				                </ul>
				            </li>                       
				            <li>
				                <a href="#">Diensten</a>
				                <ul class="active">                             
				                    <li>
				                        <a href="">Development</a>
				                        <ul class="active">
				                            <li><a href="">Applicatie Development</a></li>
				                            <li><a href="">CMS Systemen</a></li>    
				                            <li><a href="">Game Development</a></li>
				                            <li><a href="">Mobile Development</a></li>
				                            <li><a href="">Website Development</a></li>
				                            <li><a href="">Webshop Development</a></li>                                     
				                        </ul>                            
				                    </li>                                            
				                    <li><a href="">Hardware Support</a></li>
				                    <li><a href="">ICT Bedrijf Advies</a></li>                               
				                    <li><a href="">Software Support</a></li>                                
				                </ul>
				            </li>
				            <li><a href="#">Portfolio</a></li>                      
				            <li><a href="nieuws.php">Nieuws</a></li>
				            <li><a href="contact.php">Contact</a></li>
				        </ul>
				    </div>		
				';		
			break;
					
			default:
				echo '
					<div class="menubar">
				        <ul class="sf-menu">
				            <li class="current"><a href="index.php">Home</a></li>                          
				            <li>
				                <a href="#">About</a>
				                <ul class="active">
				                    <li><a href="">History</a></li>
				                    <li><a href="">Vision</a></li>
				                    <li><a href="solliciteren.php">Working at BroCo</a></li>
				                    <li><a href="">Who are we...</a></li>                                 
				                </ul>
				            </li>                       
				            <li>
				                <a href="#">Services</a>
				                <ul class="active">                             
				                    <li>
				                        <a href="">Development</a>
				                        <ul class="active">
				                            <li><a href="">Application Development</a></li>
				                            <li><a href="">CMS Systems</a></li>    
				                            <li><a href="">Game Development</a></li>
				                            <li><a href="">Mobile Development</a></li>
				                            <li><a href="">Website Development</a></li>
				                            <li><a href="">Webshop Development</a></li>                                     
				                        </ul>                            
				                    </li>                                            
				                    <li><a href="">Hardware Support</a></li>
				                    <li><a href="">ICT Business Advisory</a></li>                               
				                    <li><a href="">Software Support</a></li>                                
				                </ul>
				            </li>
				            <li><a href="#">Portfolio</a></li>                      
				            <li><a href="nieuws.php">News</a></li>
				            <li><a href="contact.php">Contact</a></li>
				        </ul>
				    </div>	
				';
			break;
		}	
	}
	
	function getFooter()
	{		
		switch(getLanguage())
		{
			case "nl": 
				echo '
				    			<div class="separator"></div>    
					                <div class="overview_container">
					                    <div class="overview_contact">
					                        <ul>
					                            <li>
					                                <span>Havenkade 105</span>
					                            </li>
					                            <li>
					                               <span>Postbus 38</span>
					                            </li>
					                            <li>
					                               <span>4502 KS Breda</span>
					                            </li>                           
					                        </ul>              
					                    </div>
					                    <div class="overview_contact">
					                        <ul>
					                            <li>
					                                <span>T: 076-4303054</span>
					                            </li>
					                            <li>
					                                <span>F: 076-4303055</span>
					                            </li>
					                            <li>
					                                <span>E: <a href="mailto:info@broco.nl">info@broco.nl</a></span>
					                            </li>
					                        </ul>                                           
					                    </div>
					                    <div class="overview_disclaimer">
					                        <ul>
					                            <li>
					                                <a href="#">Privacy Statement</a>
					                            </li>
					                            <li>
					                                <a href="#">Disclaimer</a>        
					                            </li>
					                            <li>
					                                <a href="#">Algemene voorwaarden</a>    
					                            </li>
					                        </ul>                 
					                    </div> 
					                    <div class="overview_slogan">
					                        <span>BroCo; Next Level Software Engineering.</span>
					                    </div> 
					                </div>
					                <div class="separator"></div>  
					            </div>
					        </div>
					    </body>
					</html>
				';
			break;
			
			default:
				echo '
					    			<div class="separator"></div>    
					                <div class="overview_container">
					                    <div class="overview_contact">
					                        <ul>
					                            <li>
					                                <span>Havenkade 105</span>
					                            </li>
					                            <li>
					                               <span>Mailbox 38</span>
					                            </li>
					                            <li>
					                               <span>4502 KS Breda</span>
					                            </li>                           
					                        </ul>              
					                    </div>
					                    <div class="overview_contact">
					                        <ul>
					                            <li>
					                                <span>T: 076-4303054</span>
					                            </li>
					                            <li>
					                                <span>F: 076-4303055</span>
					                            </li>
					                            <li>
					                                <span>E: <a href="mailto:info@broco.nl">info@broco.nl</a></span>
					                            </li>
					                        </ul>                                           
					                    </div>
					                    <div class="overview_disclaimer">
					                        <ul>
					                            <li>
					                                <a href="#">Privacy Statement</a>
					                            </li>
					                            <li>
					                                <a href="#">Disclaimer</a>        
					                            </li>
					                            <li>
					                                <a href="#">Terms and conditions</a>    
					                            </li>
					                        </ul>                 
					                    </div> 
					                    <div class="overview_slogan">
					                        <span>BroCo; Next Level Software Engineering.</span>
					                    </div> 
					                </div>
					                <div class="separator"></div>  
					            </div>
					        </div>
					    </body>
					</html>
				';
			break;
		}	
	}
?>

